import request from '@/utils/request'

// 获取缺陷记录
export function getInspectionitemdefectInfo(id) {
    return request({
        url: `/api/Business/Inspectionitemdefect/${id}`,
        method: 'GET'
    })
}

// 获取缺陷记录列表
export function getInspectionitemdefectList(data) {
    return request({
        url: `/api/Business/Inspectionitemdefect`,
        method: 'GET',
        data
    })
}

// 保存缺陷记录
export function createInspectionitemdefect(data) {
    return request({
        url: '/api/Business/Inspectionitemdefect',
        method: 'POST',
        data
    })
}

// 删除缺陷记录
export function delInspectionitemdefect(id) {
    return request({
        url: `/api/Business/Inspectionitemdefect/${id}`,
        method: 'DELETE'
    })
}